<template>
  <div>
    <h4>患者情况</h4>
    <el-row type="flex" justify="space-between">
      <el-col>
        <span>患者情况</span>
        <div class="grid-content">
          <el-checkbox-group v-model="pgForm.huanzheqingk">
            <el-checkbox
              v-for="item in huanzheqingk"
              :value=item.val
              :label="item.val">
              {{ item.val }}
            </el-checkbox>
            <el-input v-model="pgForm.huanzheqingk_remark" placeholder="备注" style="width: 50%"></el-input>
          </el-checkbox-group>
        </div>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: "xfzzkfpgb_huanzheqingk",
  title: "患者情况",
  created() {
    if (this.istrans) {
      this.pgForm = this.fromdata
    }
  },
  props: {
    fromdata: {},
    istrans: false,
  },
  data() {
    return {
      //患者情况
      huanzheqingk: [{"val": "咳嗽", "text": ""},
        {"val": "咳痰", "text": ""},
        {"val": "喘息", "text": ""},
        {"val": "疲劳", "text": ""},
        {"val": "呼吸急促", "text": ""},
        {"val": "胸痛", "text": ""},
        {"val": "呃逆", "text": ""},
        {"val": "发烧", "text": ""},
        {"val": "浮肿", "text": ""}],
      pgForm: {
        //患者情况
        huanzheqingk: [],
        huanzheqingk_remark: '',
      },
    }
  },
}
</script>

<style scoped>
.el-row{
  margin: 10px 0;
  padding: 20px 20px;
  background-color: #f9f9f9;
}

.el-checkbox-group{
  padding: 10px 20px;
}
.el-checkbox{
  display: block;
  margin-bottom: 15px;
}

</style>
